// 接口API

import request from "../axios";

// 获取轮播图
export const findBanner = () => {
  return request({
    url: "/home/banner",
    method: "get",
    data: "",
  });
};

// 获取信息好物
export const findNews = () => {
  return request({
    url: "/home/new",
    method: "get",
    data: "",
  });
};

// 获取人气推荐
export const findHots = () => {
  return request({
    url: "/home/hot",
    method: "get",
    data: "",
  });
};

// 获取商品列表
export const findGoods = () => {
  return request({
    url: "/home/goods",
    method: "get",
    data: "",
  });
};

// 获取最新专题
export const findSpecial = () => {
  return request({
    url: "/home/special",
    method: "get",
    data: "",
  });
};
